package com.rp.demo;

import org.apache.poi.ss.usermodel.Sheet;
import org.apache.poi.ss.usermodel.Workbook;
import org.apache.poi.xssf.usermodel.XSSFWorkbook;

import java.io.File;

/**
 * 百万数据的导入测试
 */
public class PIODemo4 {

    public static void main(String[] args) throws Exception{
        System.out.println("---");
        ///Users/rp/Downloads/百万用户数数据导出.xlsx
//        Workbook workbook = new XSSFWorkbook(new File("/Users/rp/Downloads/百万用户数数据导出.xlsx"));
//        Sheet sheet = workbook.getSheetAt(0);
//        String cellValue = sheet.getRow(0).getCell(0).getStringCellValue();
//        System.out.println(cellValue);
//        System.out.println("======");
        String s = "/Users/rp/Downloads/百万用户数数据导出.xlsx";
        ExcelParse excelParse = new ExcelParse();
        excelParse.parse(s);
        System.out.println("-------");

    }

















}
